package com.hsjk.szwj.module.train.controller.admin.vo;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/10/05 23:24
 **/
@Data
public class AdminCreateProductSpuReqVO {
    @NotEmpty(message = "spu名称不能为空")
    private String spuName;

    private String carType;

    @NotEmpty(message = "spu描述不能为空")
    private String spuDesc;

    @NotEmpty(message = "spu详情介绍不能为空")
    private String detail;

    @NotEmpty(message = "spu封面图地址不能为空")
    private String coverUrl;

    @NotEmpty(message = "spu商品轮播图地址不能为空")
    private String picUrls;

    @NotNull(message = "spu原价不能为空")
    private Integer originalPrice;

    @NotNull(message = "spu销售价不能为空")
    private Integer salePrice;

    @NotNull(message = "spu总库存不能为空")
    private Integer totalStock;

    @NotNull(message = "spu是否展示库存不能为空")
    private Boolean isShowStock;

    @NotNull(message = "spu商品销量不能为空")
    private Integer salesCount;

    @NotNull(message = "spu虚拟销量不能为空")
    private Integer virtualSalesCount;

    @NotNull(message = "spu状态不能为空")
    private Integer status;

    @NotNull(message = "spu排序不能为空")
    private Integer sortNo;

    @NotNull(message = "spu类型不能为空")
    private Integer spuType;
}
